package com.heihei.controller.res;


import com.heihei.common.response.ResponseVO;
import com.heihei.entity.res.ResResourceTagEntity;
import com.heihei.service.res.ResResourceTagService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 资源和标签的中间表 前端控制器
 * </p>
 *
 * @author duanhengfei
 * @since 2021-11-23
 */
@Api(tags = "资源和标签的中间表 Controller")
@RestController
@RequestMapping("/res/resource-tag")
public class ResResourceTagController {
    @Resource
    private ResResourceTagService resResourceTagService;

    @ApiOperation(value = "添加")
    @PostMapping("/add")
    public ResponseVO<String> add(@RequestBody ResResourceTagEntity paramEntity) {
        return this.resResourceTagService.myAdd(paramEntity);
    }

}
